<!DOCTYPE HTML>
<html lang="<?php echo $this->lang->line('header_doc_lang') ?>">
    <head>
        <title><?php echo $title ?></title>
        <meta charset="UTF-8">
        <link rel="stylesheet" href="<?php echo base_url(); ?>css/style.css" type="text/css"/>
    </head>
    <body<?php
if (isset($bodyid)) {
    echo ' id="' . $bodyid . '"';
}
?>>
            <?php $this->site_content->welcomeUser(); ?>
        <nav>
            <?php echo anchor(base_url(), $this->lang->line('header_home')); ?>
            <?php echo anchor('upload', $this->lang->line('header_upload')); ?>
            <?php if ($title != $this->lang->line('cp_cp')) {
                echo anchor('usercp', $this->lang->line('cp_cp'));
            }  else {
                echo anchor('usercp/edit-profile', $this->lang->line('cp_edit_profile'));
            } ?>
        </nav>
        <?php
        if (isset($page_title)) {
            echo '<h2>' . $page_title . '</h2>';
        }
        echo $this->message->display();
        ?>